package com.example.dbdesign.mapper;

import com.example.dbdesign.pojo.entity.Result;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface ResultMapper {
    void add(Result result);
    Result queryByRnoAndType(Result result);
    void deleteById(int id);
    void update(Result result);
    Result queryById(int id);
    List<Result> queryByPage(Map<String, Object> params);
    int cal();
    List<Result> queryByType(int type);
    List<Result> queryByDate(int date);
    List<Result> queryByTypeAndDate(Map<String, Object> map);
    List<Result> queryByUid(int id);
    List<Result> queryByUidForStu(int id);
}
